'use strict';

var IndexModel = require('../models/index');
var model = new IndexModel();

module.exports = function (router) {
    router.get('/', aaa);
    router.get('/test', test);
};

function aaa(req, res) {
    res.send('<code><pre>' + JSON.stringify(model, null, 2) + '</pre></code>');
}

function test(req, res) {
    let title = "Kraken";
    res.render("index", {title: title});
}